<?php

/**
 * 栏目推荐数据编辑
 */
Route::get('application/column_recommend_datas', ['as'=> 'application.column_recommend_datas.index', 'uses' => 'Application\ColumnRecommendDataController@index']);
Route::post('application/column_recommend_datas', ['as'=> 'application.column_recommend_datas.store', 'uses' => 'Application\ColumnRecommendDataController@store']);
Route::get('application/column_recommend_datas/create', ['as'=> 'application.column_recommend_datas.create', 'uses' => 'Application\ColumnRecommendDataController@create']);
Route::put('application/column_recommend_datas/{column_recommend_datas}', ['as'=> 'application.column_recommend_datas.update', 'uses' => 'Application\ColumnRecommendDataController@update']);
Route::patch('application/column_recommend_datas/{column_recommend_datas}', ['as'=> 'application.column_recommend_datas.update', 'uses' => 'Application\ColumnRecommendDataController@update']);
Route::delete('application/column_recommend_datas/{column_recommend_datas}', ['as'=> 'application.column_recommend_datas.destroy', 'uses' => 'Application\ColumnRecommendDataController@destroy']);
Route::get('application/column_recommend_datas/{column_recommend_datas}', ['as'=> 'application.column_recommend_datas.show', 'uses' => 'Application\ColumnRecommendDataController@show']);
Route::get('application/column_recommend_datas/{column_recommend_datas}/edit', ['as'=> 'application.column_recommend_datas.edit', 'uses' => 'Application\ColumnRecommendDataController@edit']);

// 根据数据源不同获取其下面的资源
Route::get('application/column_recommend_datas/datas/resources', ['as'=> 'application.column_recommend_datas.datas.resources', 'uses' => 'Application\ColumnRecommendDataController@getReasoureByDataType']);
// ajax根据类型获取不同模板数据
Route::get('application/column_recommend_datas/datas/{datas}/resources', ['as'=> 'application.column_recommend_datas.resources', 'uses' => 'Application\ColumnRecommendDataController@getReasourceData']);
